<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //过滤掉不及格的人
        let arr=[{name:"唐玮",grade:86},{name:"华子",grade:59},{name:"彩霞",grade:87}];
      let new_result_arr=  arr.filter(function(value,index,arr){
            return value.grade>=60;
        })
        console.table(new_result_arr);


        //案例，移除敏感词汇
        let arr1=["傻逼","妈的","草泥马"];
        let arr2=["草泥马","safeaf","摄食","妈的"];
      let new_result=  arr2.filter(function(value){
            return arr1.includes(value);
        });
        //取出敏感词
        console.log(new_result);
 
    




    </script>
</body>
</html>